#include "diskTest.h"

#ifndef _GUI

#define p2o(s) write(STDOUT_FILENO, s, strlen(s))
#define harg(s, t) do { \
        p2o("-" s " "); \
        p2o(t);         \
        p2o("\n");      \
} while (0)

void get_help(void) {
        p2o(_("\tThe program is specifically designed to destroy your disk data and can also be used to test disks.\n\n"));
        putchar('\n');
        harg("h", _("Help"));
        harg("q", _("Quiet"));
        harg("v", _("Show progress"));
        harg("r", _("Ramdom"));
        harg("S", _("Seed"));
        harg("F", _("Force with no ask"));
        harg("t", _("Test mode"));
        harg("c", _("Use colour (Not function now)"));
        harg("C", _("Not colour (Defalt)"));
        harg("-", _("File name after"));
        harg("s", _("Start at"));
        harg("n", _("Count lengh"));
        puts(_("\tThe programme develop under GLWTPL, This program comes with absolutely no warranty.\n\n"));
        exit(0);
}

#undef harg
#undef p2o

#endif // !_GUI
